package com.contextor.magiccards.web.test;

import com.contextor.magiccards.services.battle.BattleService;
import com.contextor.magiccards.services.user.UserService;
import com.contextor.magiccards.web.amf.AmfAuthenticationService;
import com.contextor.magiccards.web.to.Response;
import com.contextor.magiccards.web.to.user.UserProfileTO;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert;

/**
 * User: sergey
 * Date: Mar 15, 2011 12:19:07 PM
 */
public class AmfAuthServiceTestCase extends BaseAmfTestCase {
    public final String uid = "23hj432k54k23";

    @Autowired
    protected AmfAuthenticationService service;
    @Autowired
    protected BattleService battle;
    @Autowired
    UserService userService;

    @Test
    public void testTrackUser() throws Exception {
        final Response<UserProfileTO> response = service.trackUser(uid, uid);
        Assert.notNull(response, "response is null");
        Assert.isNull(response.errorCode, "errorCode is not null");
    }
}
